﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{
    /// [Generated Jan 30 2011]   
    public partial class i_CalendarItem_Field : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItem_Field_ID;
        private int _CalendarItem_ID;
        private int _Field_ID;
        private string _Value;
        private int _Sort;
        private string _GUID;
        private int _Field_Details_ID;

        #endregion

        #region "public properties"

        public int CalendarItem_Field_ID
        {
            get { return _CalendarItem_Field_ID; }
            set { _CalendarItem_Field_ID = value; }
        }
        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public int Field_ID
        {
            get { return _Field_ID; }
            set { _Field_ID = value; }
        }
        public string Value
        {
            get { return _Value; }
            set { _Value = value; }
        }
        public int Sort
        {
            get { return _Sort; }
            set { _Sort = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }
        public int Field_Details_ID
        {
            get { return _Field_Details_ID; }
            set { _Field_Details_ID = value; }
        }

        #endregion
        
        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
        int ISqoDataObject.OID { get { return CalendarItem_Field_ID; } set { } }
        #endregion
               

    }//public partial class i_CalendarItem_Field : Utils, ISqoDataObject

    public partial class s_CalendarItem_Field : i_CalendarItem_Field
    {
        #region "MAPPER"
        public static i_CalendarItem_Field Convert(CalendarItem_Field od_CalendarItem_Field)
        {
            return new i_CalendarItem_Field()
            {
                CalendarItem_Field_ID = IsNull(od_CalendarItem_Field.CalendarItem_Field_ID),
                CalendarItem_ID = IsNull(od_CalendarItem_Field.CalendarItem_ID),
                Field_ID = IsNull(od_CalendarItem_Field.Field_ID),
                Value = IsNull(od_CalendarItem_Field.Value),
                Sort = IsNull(od_CalendarItem_Field.Sort),
                GUID = IsNull(od_CalendarItem_Field.GUID),
                Field_Details_ID = IsNull(od_CalendarItem_Field.Field_Details_ID)
            };
        }
        #endregion
    }//public partial class s_CalendarItem_Field : i_CalendarItem_Field


}//namespace EDMD
